(function(){
    var loadScript =  function(values){ 
    	if((typeof values==='string'||values instanceof String) && values.length>0){
    		document.write('<script src="'+values+'" type="text/javascript" > </script>');
    	}else if (values instanceof Array) {
    		for ( var value in values) {
    			document.write('<script src="'+values[value]+'" type="text/javascript" > </script>');
			}
    	}
    };
    
    var loadStyle =  function(values){ 
    	if((typeof values==='string'||values instanceof String) && values.length>0){
    		document.write('<link href="'+values+'" rel="stylesheet" type="text/css" />');
    	}else if (values instanceof Array) {
    		for ( var value in values) {
    			document.write('<link href="'+values[value]+'" rel="stylesheet" type="text/css" />');
			}
    	}
    };
    
    window['Happy'] = function Happy(){
    };

    Happy.prototype = {
    		loadScript:function(values){
    			loadScript(values);
    	    },
    	    loadStyle:function(values){
    	    	loadStyle(values);
    	   },
    	   hello:function(){
    		   alert('hello happy');
    	   }
    	   
    };
})();

Happy = new Happy();